import os


if not __debug__:
    
    Files = os.listdir(os.getcwd() + '\\UI\\UIFiles')
    print Files
    
    for File in Files:
        if """.ui""" in File:
            print """pyuic4 -o UI\\%s -x UI\\UIFiles\\%s"""%(File.replace('.ui','.py'),File)
            os.system("""pyuic4 -o UI\\%s -x UI\\UIFiles\\%s"""%(File.replace('.ui','.py'),File))
            

